﻿using System;
using FreeSql.DataAnnotations;

namespace QuDao
{
    /// <summary>
    /// biz_order: biz_订单
    /// </summary>
    [Table(Name = "biz_order")]
    public partial class Order
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        [Column(IsPrimary = true, IsIdentity = false)]
        public long OrderID { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        public int TID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserID { get; set; }

        /// <summary>
        /// 用户类型：分ABC三级
        /// </summary>
        public string UserType { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string TrueName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 推荐人ID
        /// </summary>
        public long RecoID { get; set; }

        /// <summary>
        /// 推荐人姓名
        /// </summary>
        public string RecoName { get; set; }

        /// <summary>
        /// 推荐人ID2
        /// </summary>
        public long RecoID2 { get; set; }

        /// <summary>
        /// 推荐人姓名2
        /// </summary>
        public string RecoName2 { get; set; }

        /// <summary>
        /// 代理ID
        /// </summary>
        public long AgentID { get; set; }

        /// <summary>
        /// 代理姓名
        /// </summary>
        public string AgentName { get; set; }

        /// <summary>
        /// 商品总数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 余额抵扣
        /// </summary>
        public decimal DeductionAmount { get; set; }

        /// <summary>
        /// 订单金额：原价或扣除优惠后的金额，最终支付的金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 订单成本
        /// </summary>
        public decimal Cost { get; set; }

        /// <summary>
        /// 业绩提成
        /// </summary>
        public decimal Commission { get; set; }

        /// <summary>
        /// 直推奖励
        /// </summary>
        public decimal L1Fee { get; set; }

        /// <summary>
        /// 间推奖励
        /// </summary>
        public decimal L2Fee { get; set; }

        /// <summary>
        /// 订单状态：10-待付款，11-已取消，20-待审核，30-待发货，100-已完成
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 收货人电话
        /// </summary>
        public string ReceiverPhone { get; set; }

        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string ReceiverName { get; set; }

        /// <summary>
        /// 收货地址
        /// </summary>
        public string ReceivingAddress { get; set; }

        /// <summary>
        /// 收货区县ID
        /// </summary>
        public int CountyID { get; set; }

        /// <summary>
        /// 物流公司
        /// </summary>
        public string ExpressCompany { get; set; }

        /// <summary>
        /// 物流单号
        /// </summary>
        public string ExpressNo { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 转账日期
        /// </summary>
        public DateTime TransferDate { get; set; }

        /// <summary>
        /// 打款凭证图片
        /// </summary>
        public string TransferImage { get; set; }

        /// <summary>
        /// 转账备注
        /// </summary>
        public string TransferMemo { get; set; }

        /// <summary>
        /// 交易流水号
        /// </summary>
        public string TradeNo { get; set; }

        /// <summary>
        /// 收款账号
        /// </summary>
        public string PayeeAccount { get; set; }

        /// <summary>
        /// 审核员ID
        /// </summary>
        public long AuditorID { get; set; }

        /// <summary>
        /// 审核员姓名
        /// </summary>
        public string AuditorName { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime AuditingTime { get; set; }

        /// <summary>
        /// 发货人ID
        /// </summary>
        public long ShipperID { get; set; }

        /// <summary>
        /// 发货人姓名
        /// </summary>
        public string ShipperName { get; set; }

        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime DeliveryTime { get; set; }


    }
}